module.exports = {
  extends: [
    'eslint-config-airbnb',
    './rules/base.js',
    './rules/import.js',
    './rules/react-a11y.js',
    './rules/react.js',
    './rules/prettier.js',
    './rules/hooks.js',
    'eslint-config-prettier',
    'eslint-config-prettier/react',
  ].map(require.resolve),
  parser: 'babel-eslint',
  plugins: ['prettier', 'react-hooks'],
  env: {
    browser: true,
    node: true,
    jasmine: true,
    jest: true,
    es6: true,
  },
  globals: {
    __ENV__: false,
    __VERSION__: false,
    __DEBUG__: false,
  },
  parserOptions: {
    ecmaVersion: 6,
    ecmaFeatures: {
      jsx: true,
      experimentalObjectRestSpread: true,
    },
  },
};
